.jsx-javascript {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: white;
}

.jsx-javascript h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.javascript-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.js-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.js-section h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 0.5rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.example-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.example-card h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.code-example {
  margin-bottom: 1rem;
}

.code-example pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
}

.code-example code {
  font-family: 'Courier New', monospace;
  color: #e0e0e0;
}

.result {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result h4 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.result p {
  margin: 0.25rem 0;
}

.result h2 {
  color: #ffd700;
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.result ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.result li {
  margin: 0.25rem 0;
}

.items-list {
  margin-top: 0.5rem;
}

.items-list div {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.available-items {
  margin-top: 0.5rem;
}

.available-items h5 {
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.item-tag {
  display: inline-block;
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin: 0.1rem;
  font-size: 0.8rem;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* 实时数据演示 */
.realtime-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.demo-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-card h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.counter p,
.dynamic-calc p {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* 注意事项 */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.note-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.note-card h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.note-card ul {
  list-style: none;
  padding: 0;
}

.note-card li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.9rem;
}

.note-card code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #ff6b6b;
}

/* 特殊样式 */
.jsx-javascript .result div[style] {
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .jsx-javascript {
    padding: 1rem;
  }
  
  .jsx-javascript h1 {
    font-size: 2rem;
  }
  
  .example-grid {
    grid-template-columns: 1fr;
  }
  
  .realtime-demo {
    grid-template-columns: 1fr;
  }
  
  .notes-grid {
    grid-template-columns: 1fr;
  }
  
  .code-example pre {
    font-size: 0.75rem;
  }
} 